package com.tjmc.tiomsresource.listener;

import com.tjmc.tiomsresource.schedule.ResCollectSchedule;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author Luc
 * @version 1.0
 * @date 2020-06-10 15:28
 */
@Component
public class TiomsApplicationRunner implements ApplicationRunner {
    private static Logger logger = LoggerFactory.getLogger(TiomsApplicationRunner.class);

    @Autowired
    private ResCollectSchedule resCollectSchedule;

    @Override
    public void run(ApplicationArguments applicationArguments) throws Exception {
        resCollectSchedule.collectOmcResource();
    }
}
